package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.entity.LuLianEnterprise;
import com.aiti.lulian.entity.LuLianEnterpriseUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface LuLianEnterpriseUserMapper  extends SuperMapper<LuLianEnterpriseUser> {
    LuLianEnterprise selectCurrentUserJoinEnterpriseInfo(@Param("userId") String userId);

    List<LuLianEnterpriseUser> selectUserIdToEnterpriseName(@Param("list") Set<String> userId);

    Integer selectEnterpriseCountByUserId(@Param("userId") String userId);

    void deleteUserEnterprise(@Param("userId") String userId, @Param("enterpriseId") String enterpriseId);


}
